package com.xiaoxiang.text.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * (Comment)表实体类
 *
 * @author haha
 * @since 2022-05-01 22:56:30
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Comment extends Model<Comment> {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 动态id
     */
    private Long dynamicId;

    /**
     * 父级评论id
     */
    private Long parentId;

    /**
     * 根评论id
     */
    private Long rootId;

    /**
     * 内容
     */
    private String content;


    /**
     * 创建时间
     */
    private Date createTime = new Date();
}
